package com.macrounion.atv.service.service.impl;

import com.macrounion.atv.service.entity.Settings;
import com.macrounion.atv.service.mapper.SettingsMapper;
import com.macrounion.atv.service.mapper.SettingsMapperExt;
import com.macrounion.atv.service.service.SettingsService;
import com.macrounion.base.service.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SettingsServiceImpl extends BaseServiceImpl<SettingsMapper, Settings> implements SettingsService {
    @Autowired
    SettingsMapperExt settingsMapperExt;

    @Override
    public List<Map<String, String>> getValues(List<String> names) {
        return settingsMapperExt.getValues(names);
    }

    @Override
    public int saveSettings(List<Settings> settings) {
        return settingsMapperExt.saveSettings(settings);
    }

    @Override
    public int updateSettings(List<Map<String, String>> settingsMap) {
        return settingsMapperExt.updateSettings(settingsMap);
    }

	@Override
	public Settings getByName(String name) {
		// TODO Auto-generated method stub
		return settingsMapperExt.getByName(name);
	}
}